package com.lh.api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lh.api.vo.OneOrderDetailVo;
import com.lh.api.vo.OneOrderListVo;
import com.lh.api.vo.OrderDetailVo;
import com.lh.api.vo.OrderListVo;
import com.lh.common.entity.admin.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    void updateByKey(Order orderUpdate);

    List<OneOrderListVo> getOneOrderList(Map<String, Object> params);

    OneOrderDetailVo getOneOrderDetail(@Param("userId") Long userId, @Param("orderItem")String orderItem);

    List<OrderListVo> getOrderList(Map<String, Object> params);

    OrderDetailVo getOrderDetail(Long userId, String orderItem);

    Order selectByItem(String orderItem);
}
